home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / IFF / IFF_Forms / HEAD.doc < prev    next >
Encoding:
Text File  |  1993-03-01  |  2.0 KB  |  69 lines

  1. Flow -  New Horizons Software
  2.  
  3. TITLE:  HEAD  (FORM used by Flow - New Horizons Software, Inc.)
  4.  
  5. IFF FORM / CHUNK DESCRIPTION
  6. ============================
  7.  
  8. Form/Chunk ID:  FORM HEAD, Chunks NEST, TEXT, FSCC
  9.  
  10. Date Submitted: 03/87
  11. Submitted by:   James Bayless - New Horizons Software, Inc.
  12.  
  13.  
  14. FORM
  15. ====
  16.  
  17. FORM ID:  HEAD
  18.  
  19. FORM Description: 
  20.  
  21.    FORM HEAD is the file storage format of the Flow idea processor
  22. by New Horizons Software, Inc.  Currently only the TEXT and NEST
  23. chunks are used.  There are plans to incorporate FSCC and some
  24. additional chunks for headers and footers.
  25.  
  26.  
  27. CHUNKS
  28. ======
  29.  
  30. CHUNK ID:  NEST
  31.  
  32.    This chunk consists of only of a word (two byte) value that gives
  33. the new current nesting level of the outline.  The initial nesting level
  34. (outermost level) is zero.  It is necessary to include a NEST chunk only
  35. when the nesting level changes.  Valid changes to the nesting level are
  36. either to decrease the current value by any amount (with a minimum of 0)
  37. or to increase it by one (and not more than one).
  38.  
  39.  
  40. CHUNK ID:  TEXT
  41.  
  42.    This chunk is the actual text of a heading.  Each heading has a TEXT
  43. chunk (even if empty).  The text is not NULL terminated - the chunk
  44. size gives the length of the heading text.
  45.  
  46.  
  47. CHUNK ID: FSCC
  48.  
  49.    This chunk gives the Font/Style/Color changes in the heading from the
  50. most recent TEXT chunk.  It should occur immediately after the TEXT chunk
  51. it modifies.  The format is identical to the FSCC chunk for the IFF
  52. form type 'WORD' (for compatibility), except that only the 'Location'
  53. and 'Style' values are used (i.e., there can be currently only be style
  54. changes in an outline heading).  The structure definition is:
  55.  
  56. typedef struct {
  57.    UWORD   Location;   /* Char location of change */
  58.    UBYTE   FontNum;    /* Ignored */
  59.    UBYTE   Style;      /* Amiga style bits */
  60.    UBYTE   MiscStyle;  /* Ignored */
  61.    UBYTE   Color;      /* Ignored */
  62.    UWORD   pad;        /* Ignored */
  63. } FSCChange;
  64.  
  65.    The actual chunk consists of an array of these structures, one entry
  66. for each Style change in the heading text.
  67.  
  68.  
  69.